package com.example.wxback.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.wxback.util.constants.Constants;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tb_config")
@EqualsAndHashCode(callSuper = false)
public class ConfigInfo implements Serializable {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private Integer id;

    private String type;

    private String content;

    @TableId(value = "create_time")
    @JsonFormat(pattern = Constants.DATETIME_FORMAT, timezone = "GMT+8")
    private Date createDate;//到期时间

    @TableId(value = "update_time")
    @JsonFormat(pattern = Constants.DATETIME_FORMAT, timezone = "GMT+8")
    private Date updateDate;
}
